import { BasicColumn, FormSchema } from '@/components/table';

/**
 * 表格列定义
 */
export const columns: BasicColumn[] = [
  {
    title: '操作标题',
    dataIndex: 'logTitle',
    width: 120,
  },
  {
    title: '操作类型',
    dataIndex: 'logType',
    width: 120,
  },
  {
    title: '操作时间',
    dataIndex: 'createTime',
    width: 150,
  },
  {
    title: '操作人',
    dataIndex: 'optUserName',
    width: 150,
  },
  {
    title: '操作内容',
    dataIndex: 'logContent',
    width: 150,
  },
];

/**
 * 列表查询定义
 */
export const searchFormSchema: FormSchema[] = [
  {
    label: '操作类型·',
    field: 'logType',
    component: 'Input',
    colProps: { span: 6 },
  },
  {
    label: '操作人',
    field: 'optUserName',
    component: 'Input',
    colProps: { span: 6 },
  },
];
